#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main(){
	
	double a = 0, b = 0, c = 0, d = 0, s = 0;
	double e = 0;
	scanf("%lf %lf %lf %lf", &a, &b, &c, &d);
	s = a + b + c + d;
	e = s / 4;
	printf("Sum = %.0lf; Average = %.1lf", s, e);
	return 0;
}